package Files;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.HashMap;
import java.util.Map;

abstract class base {

	private static String checksystem(){
		boolean t=false;
		if ( System.getProperty("os.name").indexOf("Windows")!=-1);
		t=true;
			
	return t?"c:\\"+LOGSDIRECTORYFORFILES:"/home/mateusz/";
	}
	protected static final String REMOTEPATH = checksystem();
	protected static final String LOCALPATH = checksystem();
	protected static final String EXT = ".ser";
	protected static final String LOGSDIRECTORY="LOGSDIRECTORY/";
	protected static final String FILECOMMANDS = "c:/"+LOGSDIRECTORY+/*LOCALPATH*/  "address" + EXT;
	protected static final String FILELABS = "c:/"+LOGSDIRECTORY+/*LOCALPATH*/ "labs" + EXT;
	protected static final String LOGSDIRECTORYFORFILES="LOGSDIRECTORY\\";
	protected static final String MAINDIRECTORY="C:/"+/*LOCALPATH*/LOGSDIRECTORY;
	_FILE_ address = new _FILE_();

	FileInputStream fis;
	FileOutputStream fos;
	
	String filename;
	Map<String, String> mapa_ = new HashMap<String, String>();
	
	abstract void method1();
	String PathToFile(int value){
		switch (value) {
		case 0:// commands
			return FILECOMMANDS;
		case 1:// labs
			return FILELABS;
		case 2://change command
			return FILECOMMANDS;
		case 3://change lab
			return FILELABS;
		}
			return null;
	}
}
